-
Notifications
You must be signed in to change notification settings - Fork 8.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
optimize: Compatible with the SPI 、saga、spring module #6427
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 2.x #6427 +/- ##
============================================
+ Coverage 50.26% 50.90% +0.64%
- Complexity 5242 5285 +43
============================================
Files 942 942
Lines 33270 33215 -55
Branches 4030 4022 -8
============================================
+ Hits 16722 16907 +185
+ Misses 14929 14649 -280
- Partials 1619 1659 +40
|
common/src/main/java/org/apache/seata/common/loader/EnhancedServiceLoader.java
Show resolved
Hide resolved
compatible/src/main/java/io/seata/saga/engine/config/DbStateMachineConfig.java
Show resolved
Hide resolved
compatible/src/main/java/io/seata/spring/annotation/GlobalTransactionScanner.java
Show resolved
Hide resolved
compatible/src/main/java/io/seata/saga/statelang/domain/impl/StateMachineInstanceImpl.java
Show resolved
Hide resolved
compatible/src/main/java/io/seata/saga/rm/SagaResourceManager.java
Outdated
Show resolved
Hide resolved
saga/seata-saga-rm/src/main/java/org/apache/seata/saga/rm/StateMachineEngineHolder.java
Outdated
Show resolved
Hide resolved
compatible/src/test/java/io/seata/saga/engine/mock/DemoService.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Ⅰ. Describe what this PR did
fixes #6428
Compatible with the SPI module, loads all extensions of io.seata and apache seata, and ensures that io.seata takes precedence under the same name. It should be noted that if the io.seata compatible interface is not inherited from apache.seata, only apache will be loaded. extension of seata
Compatible with saga module and add related single tests
Compatible with the enableDatasourceProxy annotation and GlobalTransactionScaner of the spring module
1、兼容SPI模块,加载io.seata和apache seata的所有扩展,并且保证相同名称下io.seata优先,需要注意的是如果io.seata兼容的接口不是继承自apache.seata,仅会加载apache.seata的扩展
2、兼容saga模块,增加相关单测
3、兼容spring模块的enableDatasourceProxy注解和GlobalTransactionScaner